package com.haifeng.jupiter.common.datasource.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 *  乐观锁重试注解
 * </p>
 *
 * @author: Haifeng
 * @date: 2020-08-15
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OptimisticLockRetryAnnotation {

    /**
     * 重试次数
     * @return
     */
    int retryTimes() default 10;
}
